<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ProjetMultimedia: Référence de la classe TiXmlPrinter</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ProjetMultimedia</div>
   <div id="projectbrief">doxygen du projet de MultiMedia</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li class="current"><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li><a href="classes.html"><span>Index&#160;des&#160;structures&#160;de&#160;données</span></a></li>
      <li><a href="hierarchy.html"><span>Hiérarchie&#160;des&#160;classes</span></a></li>
      <li><a href="functions.html"><span>Champs&#160;de&#160;donnée</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Fonctions membres publiques</a>  </div>
  <div class="headertitle">
<div class="title">Référence de la classe TiXmlPrinter</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="TiXmlPrinter" --><!-- doxytag: inherits="TiXmlVisitor" -->
<p><code>#include &lt;<a class="el" href="tinyxml_8h_source.html">tinyxml.h</a>&gt;</code></p>
<div class="dynheader">
Graphe d'héritage de TiXmlPrinter:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_ti_xml_printer.png" usemap="#TiXmlPrinter_map" alt=""/>
  <map id="TiXmlPrinter_map" name="TiXmlPrinter_map">
<area href="class_ti_xml_visitor.html" alt="TiXmlVisitor" shape="rect" coords="0,0,81,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="affc4595c161e394035fe8d8db2216dcb"></a><!-- doxytag: member="TiXmlPrinter::VisitEnter" ref="affc4595c161e394035fe8d8db2216dcb" args="(const TiXmlDocument &amp;doc)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#affc4595c161e394035fe8d8db2216dcb">VisitEnter</a> (const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;doc)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a document. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f6dae7e0f8f55f13c750cf818c37780"></a><!-- doxytag: member="TiXmlPrinter::VisitExit" ref="a5f6dae7e0f8f55f13c750cf818c37780" args="(const TiXmlDocument &amp;doc)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a5f6dae7e0f8f55f13c750cf818c37780">VisitExit</a> (const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;doc)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a document. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac776200d125605ad54c8dbdad9462927"></a><!-- doxytag: member="TiXmlPrinter::VisitEnter" ref="ac776200d125605ad54c8dbdad9462927" args="(const TiXmlElement &amp;element, const TiXmlAttribute *firstAttribute)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#ac776200d125605ad54c8dbdad9462927">VisitEnter</a> (const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;element, const <a class="el" href="class_ti_xml_attribute.html">TiXmlAttribute</a> *firstAttribute)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an element. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0054eb696c054ad8e884fef0a3f0a3b"></a><!-- doxytag: member="TiXmlPrinter::VisitExit" ref="ac0054eb696c054ad8e884fef0a3f0a3b" args="(const TiXmlElement &amp;element)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#ac0054eb696c054ad8e884fef0a3f0a3b">VisitExit</a> (const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;element)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an element. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22ff2a5fc95de847d837ea857072e9be"></a><!-- doxytag: member="TiXmlPrinter::Visit" ref="a22ff2a5fc95de847d837ea857072e9be" args="(const TiXmlDeclaration &amp;declaration)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a22ff2a5fc95de847d837ea857072e9be">Visit</a> (const <a class="el" href="class_ti_xml_declaration.html">TiXmlDeclaration</a> &amp;declaration)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a declaration. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ffc94bd0214aa9df52116112c96d76b"></a><!-- doxytag: member="TiXmlPrinter::Visit" ref="a9ffc94bd0214aa9df52116112c96d76b" args="(const TiXmlText &amp;text)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a9ffc94bd0214aa9df52116112c96d76b">Visit</a> (const <a class="el" href="class_ti_xml_text.html">TiXmlText</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a text node. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4fb92f85d37d1c5ea6157b0eae45d1e4"></a><!-- doxytag: member="TiXmlPrinter::Visit" ref="a4fb92f85d37d1c5ea6157b0eae45d1e4" args="(const TiXmlComment &amp;comment)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a4fb92f85d37d1c5ea6157b0eae45d1e4">Visit</a> (const <a class="el" href="class_ti_xml_comment.html">TiXmlComment</a> &amp;comment)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a comment node. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0a5835b6f7cc17642afe5c59c3485a1"></a><!-- doxytag: member="TiXmlPrinter::Visit" ref="af0a5835b6f7cc17642afe5c59c3485a1" args="(const TiXmlUnknown &amp;unknown)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#af0a5835b6f7cc17642afe5c59c3485a1">Visit</a> (const <a class="el" href="class_ti_xml_unknown.html">TiXmlUnknown</a> &amp;unknown)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an unknow node. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a5c35b47d196df5059f7ca7a90d31d5b2">SetIndent</a> (const char *_indent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35793ea09a1f98e6005741507f7e3980"></a><!-- doxytag: member="TiXmlPrinter::Indent" ref="a35793ea09a1f98e6005741507f7e3980" args="()" -->
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a35793ea09a1f98e6005741507f7e3980">Indent</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Query the indention string. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a6e83bf85282be30473185d1f4b00bbdf">SetLineBreak</a> (const char *_lineBreak)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab48af389e9a758e844f628c5497f33ab"></a><!-- doxytag: member="TiXmlPrinter::LineBreak" ref="ab48af389e9a758e844f628c5497f33ab" args="()" -->
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#ab48af389e9a758e844f628c5497f33ab">LineBreak</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Query the current line breaking string. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a6cf4cf5bc8e01dff0cb75d1bdfbf7e6d">SetStreamPrinting</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91b713da0032c680dfa529354ecf1d0d"></a><!-- doxytag: member="TiXmlPrinter::CStr" ref="a91b713da0032c680dfa529354ecf1d0d" args="()" -->
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a91b713da0032c680dfa529354ecf1d0d">CStr</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the result. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b470b21b5807f0a9162bef72aebfef9"></a><!-- doxytag: member="TiXmlPrinter::Size" ref="a7b470b21b5807f0a9162bef72aebfef9" args="()" -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a7b470b21b5807f0a9162bef72aebfef9">Size</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the length of the result string. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Description détaillée</h2>
<div class="textblock"><p>Print to memory functionality. The <a class="el" href="class_ti_xml_printer.html">TiXmlPrinter</a> is useful when you need to:</p>
<ol type="1">
<li>Print to memory (especially in non-STL mode)</li>
<li>Control formatting (line endings, etc.)</li>
</ol>
<p>When constructed, the <a class="el" href="class_ti_xml_printer.html">TiXmlPrinter</a> is in its default "pretty printing" mode. Before calling Accept() you can call methods to control the printing of the XML document. After <a class="el" href="class_ti_xml_node.html#a3da2314556d60c86be93bcef3bcf8893">TiXmlNode::Accept()</a> is called, the printed document can be accessed via the <a class="el" href="class_ti_xml_printer.html#a91b713da0032c680dfa529354ecf1d0d" title="Return the result.">CStr()</a>, Str(), and <a class="el" href="class_ti_xml_printer.html#a7b470b21b5807f0a9162bef72aebfef9" title="Return the length of the result string.">Size()</a> methods.</p>
<p><a class="el" href="class_ti_xml_printer.html">TiXmlPrinter</a> uses the Visitor API. </p>
<div class="fragment"><pre class="fragment">
	TiXmlPrinter printer;
	printer.SetIndent( "\t" );

	doc.Accept( &amp;printer );
	fprintf( stdout, "%s", printer.CStr() );
	</pre></div> </div><hr/><h2>Documentation des fonctions membres</h2>
<a class="anchor" id="a5c35b47d196df5059f7ca7a90d31d5b2"></a><!-- doxytag: member="TiXmlPrinter::SetIndent" ref="a5c35b47d196df5059f7ca7a90d31d5b2" args="(const char *_indent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetIndent </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>_indent</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the indent characters for printing. By default 4 spaces but tab () is also useful, or null/empty string for no indentation. </p>

</div>
</div>
<a class="anchor" id="a6e83bf85282be30473185d1f4b00bbdf"></a><!-- doxytag: member="TiXmlPrinter::SetLineBreak" ref="a6e83bf85282be30473185d1f4b00bbdf" args="(const char *_lineBreak)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetLineBreak </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>_lineBreak</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the line breaking string. By default set to newline (<br/>
). Some operating systems prefer other characters, or can be set to the null/empty string for no indenation. </p>

</div>
</div>
<a class="anchor" id="a6cf4cf5bc8e01dff0cb75d1bdfbf7e6d"></a><!-- doxytag: member="TiXmlPrinter::SetStreamPrinting" ref="a6cf4cf5bc8e01dff0cb75d1bdfbf7e6d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetStreamPrinting </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Switch over to "stream printing" which is the most dense formatting without linebreaks. Common when the XML is needed for network transmission. </p>

</div>
</div>
<hr/>La documentation de cette classe a été générée à partir des fichiers suivants :<ul>
<li>C:/Users/Nicolas/Documents/ProjetMultimedia/Projet/<a class="el" href="tinyxml_8h_source.html">tinyxml.h</a></li>
<li>C:/Users/Nicolas/Documents/ProjetMultimedia/Projet/tinyxml.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Énumérations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Fri May 13 2011 15:10:07 pour ProjetMultimedia par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
